package com.ruoyi.web.tdmdata.service.impl;

import java.util.List;
import com.ruoyi.common.utils.DateUtils;
import com.ruoyi.common.utils.SecurityUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.web.tdmdata.mapper.TdmYaoWuShouTiMapper;
import com.ruoyi.web.tdmdata.domain.TdmYaoWuShouTi;
import com.ruoyi.web.tdmdata.service.ITdmYaoWuShouTiService;

/**
 * ID-09 -22 药物受体Service业务层处理
 * 
 * @author ly
 * @date 2022-03-14
 */
@Service
public class TdmYaoWuShouTiServiceImpl implements ITdmYaoWuShouTiService 
{
    @Autowired
    private TdmYaoWuShouTiMapper tdmYaoWuShouTiMapper;

    /**
     * 查询ID-09 -22 药物受体
     * 
     * @param id ID-09 -22 药物受体主键
     * @return ID-09 -22 药物受体
     */
    @Override
    public TdmYaoWuShouTi selectTdmYaoWuShouTiById(Long id)
    {
        return tdmYaoWuShouTiMapper.selectTdmYaoWuShouTiById(id);
    }

    /**
     * 查询ID-09 -22 药物受体列表
     * 
     * @param tdmYaoWuShouTi ID-09 -22 药物受体
     * @return ID-09 -22 药物受体
     */
    @Override
    public List<TdmYaoWuShouTi> selectTdmYaoWuShouTiList(TdmYaoWuShouTi tdmYaoWuShouTi)
    {
        return tdmYaoWuShouTiMapper.selectTdmYaoWuShouTiList(tdmYaoWuShouTi);
    }

    @Override
    public List<TdmYaoWuShouTi> selectTdmYaoWuShouTiCardiovascularList(TdmYaoWuShouTi tdmYaoWuShouTi) {
        return tdmYaoWuShouTiMapper.selectTdmYaoWuShouTiCardiovascularList(tdmYaoWuShouTi);
    }

    @Override
    public List<TdmYaoWuShouTi> selectTdmYaoWuShouTiDigestionList(TdmYaoWuShouTi tdmYaoWuShouTi) {
        return tdmYaoWuShouTiMapper.selectTdmYaoWuShouTiDigestionList(tdmYaoWuShouTi);
    }

    @Override
    public List<TdmYaoWuShouTi> selectTdmYaoWuShouTiBloodList(TdmYaoWuShouTi tdmYaoWuShouTi) {
        return tdmYaoWuShouTiMapper.selectTdmYaoWuShouTiBloodList(tdmYaoWuShouTi);
    }

    @Override
    public List<TdmYaoWuShouTi> selectTdmYaoWuShouTiEndocrineList(TdmYaoWuShouTi tdmYaoWuShouTi) {
        return tdmYaoWuShouTiMapper.selectTdmYaoWuShouTiEndocrineList(tdmYaoWuShouTi);
    }

    @Override
    public List<TdmYaoWuShouTi> selectTdmYaoWuShouTiMuscleList(TdmYaoWuShouTi tdmYaoWuShouTi) {
        return tdmYaoWuShouTiMapper.selectTdmYaoWuShouTiMuscleList(tdmYaoWuShouTi);
    }

    @Override
    public List<TdmYaoWuShouTi> selectTdmYaoWuShouTiAntitumorList(TdmYaoWuShouTi tdmYaoWuShouTi) {
        return tdmYaoWuShouTiMapper.selectTdmYaoWuShouTiAntitumorList(tdmYaoWuShouTi);
    }

    @Override
    public List<TdmYaoWuShouTi> selectTdmYaoWuShouTiRespirationList(TdmYaoWuShouTi tdmYaoWuShouTi) {
        return tdmYaoWuShouTiMapper.selectTdmYaoWuShouTiRespirationList(tdmYaoWuShouTi);
    }

    @Override
    public List<TdmYaoWuShouTi> selectTdmYaoWuShouTiSenseList(TdmYaoWuShouTi tdmYaoWuShouTi) {
        return tdmYaoWuShouTiMapper.selectTdmYaoWuShouTiSenseList(tdmYaoWuShouTi);
    }

    @Override
    public List<TdmYaoWuShouTi> selectTdmYaoWuShouTiDermatosisList(TdmYaoWuShouTi tdmYaoWuShouTi) {
        return tdmYaoWuShouTiMapper.selectTdmYaoWuShouTiDermatosisList(tdmYaoWuShouTi);
    }

    @Override
    public List<TdmYaoWuShouTi> selectTdmYaoWuShouTiUrinaryTractList(TdmYaoWuShouTi tdmYaoWuShouTi) {
        return tdmYaoWuShouTiMapper.selectTdmYaoWuShouTiUrinaryTractList(tdmYaoWuShouTi);
    }

    /**
     * 新增ID-09 -22 药物受体
     * 
     * @param tdmYaoWuShouTi ID-09 -22 药物受体
     * @return 结果
     */
    @Override
    public int insertTdmYaoWuShouTi(TdmYaoWuShouTi tdmYaoWuShouTi)
    {
        tdmYaoWuShouTi.setCreateByName(SecurityUtils.getUsername());
        tdmYaoWuShouTi.setCreateTime(DateUtils.getNowDate());
        tdmYaoWuShouTi.setShenHe(0L);
        return tdmYaoWuShouTiMapper.insertTdmYaoWuShouTi(tdmYaoWuShouTi);
    }

    @Override
    public int insertTdmYaoWuShouTiCardiovascular(TdmYaoWuShouTi tdmYaoWuShouTi) {
        tdmYaoWuShouTi.setCreateByName(SecurityUtils.getUsername());
        tdmYaoWuShouTi.setCreateTime(DateUtils.getNowDate());
        tdmYaoWuShouTi.setShenHe(0L);
        return tdmYaoWuShouTiMapper.insertTdmYaoWuShouTiCardiovascular(tdmYaoWuShouTi);
    }

    @Override
    public int insertTdmYaoWuShouTiDigestion(TdmYaoWuShouTi tdmYaoWuShouTi) {
        tdmYaoWuShouTi.setCreateByName(SecurityUtils.getUsername());
        tdmYaoWuShouTi.setCreateTime(DateUtils.getNowDate());
        tdmYaoWuShouTi.setShenHe(0L);
        return tdmYaoWuShouTiMapper.insertTdmYaoWuShouTiDigestion(tdmYaoWuShouTi);
    }

    @Override
    public int insertTdmYaoWuShouTiBlood(TdmYaoWuShouTi tdmYaoWuShouTi) {
        tdmYaoWuShouTi.setCreateByName(SecurityUtils.getUsername());
        tdmYaoWuShouTi.setCreateTime(DateUtils.getNowDate());
        tdmYaoWuShouTi.setShenHe(0L);
        return tdmYaoWuShouTiMapper.insertTdmYaoWuShouTiBlood(tdmYaoWuShouTi);
    }

    @Override
    public int insertTdmYaoWuShouTiEndocrine(TdmYaoWuShouTi tdmYaoWuShouTi) {
        tdmYaoWuShouTi.setCreateByName(SecurityUtils.getUsername());
        tdmYaoWuShouTi.setCreateTime(DateUtils.getNowDate());
        tdmYaoWuShouTi.setShenHe(0L);
        return tdmYaoWuShouTiMapper.insertTdmYaoWuShouTiEndocrine(tdmYaoWuShouTi);
    }

    @Override
    public int insertTdmYaoWuShouTiMuscle(TdmYaoWuShouTi tdmYaoWuShouTi) {
        tdmYaoWuShouTi.setCreateByName(SecurityUtils.getUsername());
        tdmYaoWuShouTi.setCreateTime(DateUtils.getNowDate());
        tdmYaoWuShouTi.setShenHe(0L);
        return tdmYaoWuShouTiMapper.insertTdmYaoWuShouTiMuscle(tdmYaoWuShouTi);
    }

    @Override
    public int insertTdmYaoWuShouTiAntitumor(TdmYaoWuShouTi tdmYaoWuShouTi) {
        tdmYaoWuShouTi.setCreateByName(SecurityUtils.getUsername());
        tdmYaoWuShouTi.setCreateTime(DateUtils.getNowDate());
        tdmYaoWuShouTi.setShenHe(0L);
        return tdmYaoWuShouTiMapper.insertTdmYaoWuShouTiAntitumor(tdmYaoWuShouTi);
    }

    @Override
    public int insertTdmYaoWuShouTiRespiration(TdmYaoWuShouTi tdmYaoWuShouTi) {
        tdmYaoWuShouTi.setCreateByName(SecurityUtils.getUsername());
        tdmYaoWuShouTi.setCreateTime(DateUtils.getNowDate());
        tdmYaoWuShouTi.setShenHe(0L);
        return tdmYaoWuShouTiMapper.insertTdmYaoWuShouTiRespiration(tdmYaoWuShouTi);
    }

    @Override
    public int insertTdmYaoWuShouTiSense(TdmYaoWuShouTi tdmYaoWuShouTi) {
        tdmYaoWuShouTi.setCreateByName(SecurityUtils.getUsername());
        tdmYaoWuShouTi.setShenHe(0L);
        tdmYaoWuShouTi.setCreateTime(DateUtils.getNowDate());
        return tdmYaoWuShouTiMapper.insertTdmYaoWuShouTiSense(tdmYaoWuShouTi);
    }

    @Override
    public int insertTdmYaoWuShouTiDermatosis(TdmYaoWuShouTi tdmYaoWuShouTi) {
        tdmYaoWuShouTi.setCreateByName(SecurityUtils.getUsername());
        tdmYaoWuShouTi.setCreateTime(DateUtils.getNowDate());
        tdmYaoWuShouTi.setShenHe(0L);
        return tdmYaoWuShouTiMapper.insertTdmYaoWuShouTiDermatosis(tdmYaoWuShouTi);
    }

    @Override
    public int insertTdmYaoWuShouTiUrinaryTract(TdmYaoWuShouTi tdmYaoWuShouTi) {
        tdmYaoWuShouTi.setCreateByName(SecurityUtils.getUsername());
        tdmYaoWuShouTi.setCreateTime(DateUtils.getNowDate());
        tdmYaoWuShouTi.setShenHe(0L);
        return tdmYaoWuShouTiMapper.insertTdmYaoWuShouTiUrinaryTract(tdmYaoWuShouTi);
    }

    /**
     * 修改ID-09 -22 药物受体
     * 
     * @param tdmYaoWuShouTi ID-09 -22 药物受体
     * @return 结果
     */
    @Override
    public int updateTdmYaoWuShouTi(TdmYaoWuShouTi tdmYaoWuShouTi)
    {
        tdmYaoWuShouTi.setUpdateTime(DateUtils.getNowDate());
        tdmYaoWuShouTi.setUpdateByName(SecurityUtils.getUsername());
        return tdmYaoWuShouTiMapper.updateTdmYaoWuShouTi(tdmYaoWuShouTi);
    }

    /**
     * 批量删除ID-09 -22 药物受体
     * 
     * @param ids 需要删除的ID-09 -22 药物受体主键
     * @return 结果
     */
    @Override
    public int deleteTdmYaoWuShouTiByIds(Long[] ids)
    {
        return tdmYaoWuShouTiMapper.deleteTdmYaoWuShouTiByIds(ids);
    }

    /**
     * 删除ID-09 -22 药物受体信息
     * 
     * @param id ID-09 -22 药物受体主键
     * @return 结果
     */
    @Override
    public int deleteTdmYaoWuShouTiById(Long id)
    {
        return tdmYaoWuShouTiMapper.deleteTdmYaoWuShouTiById(id);
    }
}
